package com.jmlee.service.impl;

import com.jmlee.avo.ChooseSelectVo;
import com.jmlee.mapper.ACarouselMapper;
import com.jmlee.pojo.Acarousel;
import com.jmlee.service.CarouselService;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 广告管理
 *
 * @author xl W
 * @date 2021/3/13 15:57
 */

@Service
public class CarouselServiceImpl implements CarouselService {


    @Autowired
    private ACarouselMapper aCarouselMapper;

    //=========================广告管理===============================
    //分店广告表格数据
    @Override
    public int selectSAdAcListCount(Acarousel acarousel,Long adminId) {
        return aCarouselMapper.selectSAdAcListCount(acarousel,adminId);
    }
    //分店广告表格数据
    @Override
    public List<Acarousel> selectSAdAcList(Acarousel acarousel, RowBounds rowBounds,Long adminId) {
        return aCarouselMapper.selectSAdAcList(acarousel, rowBounds,adminId);
    }

    //总店广告表格数据
    @Override
    public int selectAdAcListCount(Acarousel acarousel ) {
        return aCarouselMapper.selectAdAcListCount(acarousel);
    }
    //总店广告表格数据
    @Override
    public List<Acarousel> selectAdAcList(Acarousel acarousel, RowBounds rowBounds ) {
        return aCarouselMapper.selectAdAcList(acarousel, rowBounds);
    }

    //总店广告列表禁用
    @Override
    public boolean acarouselForbidden(Acarousel acarousel) {
        return aCarouselMapper.acarouselForbidden(acarousel);
    }
    //总店广告列表启用
    @Override
    public boolean carouselStart(Acarousel acarousel) {
        return aCarouselMapper.carouselStart(acarousel);
    }

    //总店广告列表审核
    @Override
    public boolean carouselPass(String aId) {
        return aCarouselMapper.carouselPass(aId);
    }
    //总店审核广告不通过
    @Override
    public boolean carouselNoPass(String aId) {
        return aCarouselMapper.carouselNoPass(aId);
    }

    @Override
    public boolean addPicture(Acarousel acarousel){
        return aCarouselMapper.addPicture( acarousel);
    }
    @Override
    public Integer addAdvertising(Acarousel acarousel){
        return aCarouselMapper.addAdvertising(acarousel);
    }
    @Override
    public List<ChooseSelectVo> getCa() {
        return aCarouselMapper.getCa();
    }

    @Override
    public List<ChooseSelectVo> getIt() {
        return aCarouselMapper.getIt();
    }




}
